<?php

namespace yiike\company\backend\controllers;
use yiike\company\model\StoreOrder;
use yiike\company\model\StoreOrderSearch;
use dmstr\bootstrap\Tabs;
use yii\web\HttpException;
use yii\helpers\Url;
/**
* This is the class for controller "StoreOrderController".
*/
class StoreOrderController extends \yiike\company\backend\controllers\base\StoreOrderController
{

    public function actionIndex()
    {
        $_GET['StoreOrderSearch']['company_id'] = \Yii::$app->user->identity->id;
        $searchModel  = new StoreOrderSearch;
        $dataProvider = $searchModel->search($_GET);

        Tabs::clearLocalStorage();

        Url::remember();
        \Yii::$app->session['__crudReturnUrl'] = null;

        return $this->render('index', [
            'dataProvider' => $dataProvider,
            'searchModel' => $searchModel,
        ]);
    }
}
